home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / examples / rasterops / README < prev    next >
Encoding:
Text File  |  1996-11-11  |  2.7 KB  |  86 lines

  1.  
  2.         to compile programs in the above-indicated sub- directories/trees, 
  3.        one must load libglut. inst-able images of GLUT v3.1 are located at 
  4.                 toolbox/src/exampleCode/opengl/GLUT/inst/ 
  5.  
  6.                   -------------------------------------
  7.  
  8.     ~opengl2/examples/raster README
  9.  
  10.             Copyright 1993, 1995, 1996, Silicon Graphics,  Inc.
  11.             Technical Education Development
  12.             All Rights Reserved.
  13.  
  14.  
  15.          A collection of programs implementing raster 
  16.               positioning and pixel operations within the OpenGL.
  17.    
  18.  
  19.  
  20.     blendrgb.c
  21.     Demonstrates how to use the GL_EXT_blend_color extensions
  22.     to blend two images that do not have an alpha channel.
  23.  
  24.     Up Arrow        - increase blend factor
  25.     Down Arrow        - decrease blend factor
  26.     Escape key        - exit the program
  27.  
  28.  
  29.     collage.c:  display one or more image files as a collage.
  30.         Display one or more image files as a collage using glRasterPos2f()
  31.     and glDrawPixels()
  32.         
  33.       usage:  collage <file.rgb> [<file2.rgb>] ...
  34.   
  35.       Up to MAX_IMAGES can be read.  collage will randomly
  36.       display images zoomed randomly in random positions.
  37.  
  38.     Escape key        - exit the program
  39.       SPACEBAR        - toggle fixed/random zoom
  40.   
  41.  
  42.     copyImage.c
  43.         Demonstrates the glCopyPixels() routine.  copyImage copies the 
  44.     pixels under the cursor when LEFTMOUSE is pressed.
  45.  
  46.       Escape key         - exit the program
  47.       Left Mousebutton, down     - copy pixels
  48.       Middle Mousebutton, down - expand viewing area
  49.       Right Mousebutton, down     - shrink viewing area
  50.  
  51.  
  52.     copyZoom.c:  demonstates the glCopyPixels() and glPixelZoom() routines.
  53.  
  54.     Escape key                      - exit the program
  55.     Left Mousebutton, down          - copy pixels
  56.     Middle Mousebutton, down        - zoom down
  57.     Right Mousebutton, down         - zoom up
  58.  
  59.  
  60.  
  61.     show.c:  displays an sgi rgb format image file in a window.
  62.         show creates a window displaying any RGB image stored in the SGI 
  63.     .rgb format.  The filename is opened and the image data is read.  
  64.       The image is then displayed in a window.
  65.  
  66.     Escape key               - exit the program
  67.  
  68.  
  69.     pan.c:  creates a window displaying a subimage of any RGB image 
  70.     stored in the SGI .rgb format.  It opens the file specified on the
  71.     command line and creates a window displaying a subimage taken 
  72.     from the middle of the image.
  73.      
  74.     The image can be panned by dragging the mouse with the
  75.     Left Mousebutton pressed.
  76.  
  77.     Left Mousebutton, down   - pan subimage
  78.     Escape key               - exit the program
  79.  
  80.  
  81.     windowSnap.c:  write pixel data from the window to an image file.
  82.       When LEFTMOUSE is pressed and released the window is captured,
  83.       the pixel data is written into a file, and the program exits.
  84.  
  85.     Left Mousebutton, up     - get snapshot of window and exit
  86.